import { Environment } from "./core/Environment";
import { FileUtils } from "./core/FileUtils";
import { Helper } from "./Helper";

async function main() {
    let argv: string[] = [];
    for (let i = 2; i < process.argv.length; i++) {
        argv.push(process.argv[i]);
    }

    Environment.isCommand = true;

    console.log(`参数: ${argv}`);
    // Helper.instance.gitCurBranch().then((branch) => {
    //     console.log(`当前分支: ${branch}`);
    // });
    // Helper.instance.gitPull(Helper.instance.bundlesPath, Helper.instance.bundlesUrl);
    // let cores = FileUtils.getFiles("./src/core");
    // cores.forEach((file) => {
    //     console.log(`name:${file.name}, path:${file.path}, relative:${file.relative}, size:${file.size}`);
    // });
    // Helper.instance.logger = console;
    // Helper.instance;
    Helper.instance.tinifyCompress();
}

main();